
using System;
using System.Collections;
using System.Data;
using System.Xml;



namespace OR.Lazarus.Library.DataTier.Source
{
   public class IntersectionCollection : OR.Lazarus.Library.DataTier.Source.Lazarus.IntersectionCollection
   {
		public IntersectionCollection GetCollectionsByObject( ObjectDetail p_oObject )
		{
			IntersectionCollection	v_oReturn = new IntersectionCollection();

			foreach ( IntersectionDetail v_oIntersection in this.List )
			{
				foreach ( ReferenceDetail v_oReference in v_oIntersection.References )
				{
					if ( ( v_oReference.Cardinality == "1" ) && ( v_oReference.Object == p_oObject.Name ) )
					{
						v_oReturn.Add( v_oIntersection );

						break;
					}
				}
			}

			return ( v_oReturn );
		}
   }
}
   